package com.own.business.system.account.mapper;

import com.own.business.system.account.entity.SystemAccount;
import com.own.component.common.base.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * SystemAccountMapper
 *
 * @author chenxueli
 * @date 2022-09-10 16:12:00
 */
@Mapper
public interface SystemAccountMapper extends BaseMapper<SystemAccount> {

    /**
     * 更新密码
     *
     * @param userId   用户id
     * @param password 密码（密文）
     * @return 影响行数
     */
    int updatePassword(@Param("userId") Long userId, @Param("password") String password);

}
